﻿using Castle.MicroKernel.SubSystems.Conversion;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Xml.Linq;
using AppFramework.DinosaursParkMes.ProductWork.Dto;
using Abp.Application.Services.Dto;

namespace AppFramework.DinosaursParkMes.Execute.Dto
{
    public class ExecuteDto
    {
        /// <summary>
        /// 工单编号
        /// </summary>
        [Display(Name = "工单编号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        public string WorkOrderNumber { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name = "状态")]
        public ProductState State { get; set; } = ProductState.WaitScheduled;
        /// <summary>
        /// 产品编号
        /// </summary>
        [Display(Name = "产品编号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        public string ProductNumber { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        [Display(Name = "产品名称")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        public string ProductName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        [Display(Name = "规格型号")]
        [MaxLength(40)]
        [Column(TypeName = "nvarchar(40)")]
        public string Specification { get; set; }
        /// <summary>
        /// 路线名称
        /// </summary>
        public string Routename { get; set; }
        /// <summary>
        /// 工序编号
        /// </summary>
        public string Processcode { get; set; }
        /// <summary>
        /// 计划数量
        /// </summary>
        public int? PlanNumber { get; set; }
        /// <summary>
        /// 不合格数量
        /// </summary>
        public int DisqualificationNumber { get; set; }
        /// <summary>
        /// 合格数量
        /// </summary>
        public int QualifiedNumber { get; set; }
        /// <summary>
        /// 实际数量
        /// </summary>
        public int RealQuantity { get; set; }
    }
}
